import { useEffect } from "react";
import { useDispatch } from "react-redux";

function Home() {
    const dispath = useDispatch()
    const init = () => {
        dispath({ type: "setProgressShow", value: true })
        dispath({ type: "setProgressNum", value: 10 })
        setTimeout(() => {
            dispath({ type: "setProgressNum", value: 60 })
            setTimeout(() => {
                dispath({ type: "setProgressShow", value: false })
            }, 1000);
        }, 1000);
    }
    useEffect(() => {
        init()
    }, [])
    return (
        <div>home</div>
    )
}

export default Home;